﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ContentRenderingApiSystemTest.Helper
{
    internal class ObjectIndexerHelper
    {
        private string _name;
        private object _value;

        internal ObjectIndexerHelper(
            string name,
            object value)
        {
            this._name = name;
            this._value = value;
        }

        public object this[string name]
        {
            get
            {
                if (name != this._name)
                {
                    return false;
                }

                return this._value;
            }
        }
    }
}
